# -*- coding: utf-8 -*-
# @Time    : 2021/12/21 14:55
# @Author  : xiao
from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.cancellatingPage import CancellatingPage
from commen.page.ann.securityPage import SecurityPage
from commen.page.ann.settingPage import SettingPage


class CancellatingCase(UIParent):

    @classmethod
    def test_CancellatingIndex(slef):
        '''销户页面首页校验'''

        myPage.loginByStatu()
        myPage.clickSettingBtn()
        SettingPage.clickSecurityBtn()
        SecurityPage.clickCancellatingBtn()
        text=CancellatingPage.getTitle()
        print("获取标题："+text)
        asserts.equal(text, "申请注销爱南宁账号","销户页面文案校验")